var app = angular.module('myApp');
    app.controller('myNewsContr',['$scope',function($scope){
		var lis = document.querySelectorAll('.nav_li');
		var divs = document.querySelectorAll('.n_con');
		
		for(var i=0;i<lis.length;i++){
			lis[i].index = i;
		    lis[i].onclick = function(){
				for(var i=0; i<divs.length; i++){
					lis[i].id = '';
					divs[i].style.display = 'none';
				}
				this.id = 'active';
				divs[this.index].style.display = 'block';
			}
		}
}])